]> dgit.raspbian.org Git - gnome-shell.git/commit
main: Use session mode property for welcome dialog
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 5 Apr 2021 17:36:29 +0000 (19:36 +0200)
committerMarge Bot <marge-bot@gnome.org>
Tue, 6 Apr 2021 18:57:39 +0000 (18:57 +0000)
commite6be180df1673fefe31ac93dc5983dfad850ecdb
treef0941b3d2752e8d4eac07184eaefcf9487f8b0cc
parentd5af1fa0983919312be4fe2d6e920aae76941084
main: Use session mode property for welcome dialog

We only want to show the welcome dialog in the user session, not
on the login screen or during initial setup. We currently achieve
that by explicitly checking for those mode names, but there are
other modes like gnome-classic where the dialog is equally un-
helpful. Support those cases by adding a session mode property
that determines whether the welcome dialog should be enabled,
so that modes can opt in or out of the feature themselves.

(Both the 'gdm' and 'initial-setup' modes are based on the
'restricted' mode, so this change does not affect them)

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4026

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1793>
js/ui/main.js
js/ui/sessionMode.js